package com.itheima.d5_data_stream;

import java.io.DataInputStream;
import java.io.FileInputStream;

public class DataInputStreamTest2 {
    public static void main(String[] args) {
        try (DataInputStream dis = new DataInputStream(
                new FileInputStream("C:\\Users\\dell\\IdeaProjects\\file-io-app\\io-app2\\src\\itheima10.txt"));
        ){
            int i=dis.readInt();
            System.out.println(i);

            double d=dis.readDouble();
            System.out.println(d);

            boolean b=dis.readBoolean();
            System.out.println(b);

            String s = dis.readUTF();
            System.out.println(s);
        }catch (Exception e){
            e.printStackTrace();
        }
    }

}
